package org.xuan.dubbo.system.controller;
 
import com.alibaba.dubbo.config.annotation.Reference;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xuan.dubbo.api.entity.User;
import org.xuan.dubbo.api.service.TestService;

@RestController
@RequestMapping("/sys")
public class SysController {
    //@Reference(version = "1.0.0")
	@Resource
    private TestService testService;

    @GetMapping("/hello")
    public String hello() {
        return testService.sayHello("sys call provier!");
    }

    
}